package DAO;

import javabean.Customer;

import java.sql.SQLException;
import java.util.List;

public interface ICustomerDAO {
    public boolean login(Customer customer) throws Exception;

    public boolean addCustomer(Customer customer) throws Exception;

    public boolean updateCustomer(Customer customer) throws SQLException;
    public boolean deleteCustomer(Customer customer) throws SQLException;
    public boolean resetPassword(Customer customer, String newPassword) throws SQLException;
    public Customer searchCustomer(String customerID) throws SQLException;
    public boolean recharge(Customer customer, double money) throws SQLException;
    public List<Customer> getAllCustomer() throws SQLException;
    public boolean deleteCustomer(String customerID) throws SQLException;
}
